package org.ihelpuoo.weboo.util;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.ihelpuoo.http.HTTP;

public class HttpLog
{
	public static final Logger	log	= Logger.getLogger(HttpLog.class);

	public static void dumpBrief(HttpServletRequest request)
	{
		if (log.isInfoEnabled())
			log.info(HTTP.dumpBrief(request));
		if (log.isDebugEnabled())
			log.debug(request.getSession().getId() + "\n"
					+ HTTP.dumpSessionAttributes(request.getSession()));
	}
}
